﻿using HiSportApplet.Core.Enum;
using SqlSugar;
using System.ComponentModel.DataAnnotations;


namespace HiSportApplet.Core.Entity.Orders
{
    /// <summary>
    /// 预定场地 字表
    /// </summary>
    [SugarTable(null, "订单表详情")]
    public class OrderSiteInfo: EntityBase
    {
        /// <summary>
        /// 主订单ID
        /// </summary>
        [SugarColumn(ColumnDescription = "主订单ID", DefaultValue = "0", IsNullable = false)]
        public long OrderSiteId { get; set; }

        /// <summary>
        /// 预定时间
        /// </summary>
        [SugarColumn(ColumnDescription = "预定时间", IsNullable = true)]
        public DateTime ScheduledTime { get; set; }

        /// <summary>
        /// 场地类型
        /// </summary>
        [SugarColumn(ColumnDescription = "场地类型", DefaultValue = "0", IsNullable = false)]
        public long SiteTypeId { get; set; }

        /// <summary>
        /// 场地
        /// </summary>
        [SugarColumn(ColumnDescription = "场地", DefaultValue = "0", IsNullable = false)]
        public long SiteId { get; set; }


        /// <summary>
        /// 开始
        /// </summary>
        [SugarColumn(ColumnDescription = "开始", DefaultValue = "", IsNullable = false)]
        [MaxLength(10)]
        public string StartTime { get; set; }

        /// <summary>
        /// 结束
        /// </summary>
        [SugarColumn(ColumnDescription = "结束", DefaultValue = "", IsNullable = false)]
        [MaxLength(10)]
        public string EndTime { get; set; }



        /// <summary>
        /// 原价
        /// </summary>
        [SugarColumn(ColumnDescription = "原价", DefaultValue ="0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal OriginalPrice { get; set; }

        /// <summary>
        /// 实际价格
        /// </summary>
        [SugarColumn(ColumnDescription = "实际支付价格", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal ActualPayAmount { get; set; }


        /// <summary>
        /// 预定状态
        /// </summary>
        [SugarColumn(ColumnDescription = "预定状态", DefaultValue = "0", IsNullable = false)]
        public ScheduledSiteStateEnum ScheduledSiteState { get; set; }

       
    }
}
